package com.lingyue.entity.module.def.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
* <p>
* 系统字典表
* </p>
*
* @author deep
* @version 1.0 on 2019-12-17
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("data_dictionary")
@ApiModel(value="DataDictionaryEntity对象", description="系统字典表")
public class DataDictionaryEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "DIC_ID", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = " ID ")
    @TableField("DIC_VALUE_ID")
    private Integer valueId;

    @ApiModelProperty(value = " 父ID 引用 DAD_VALUE_ID")
    @TableField("DIC_PARENT_ID")
    private Integer parentId;

    @ApiModelProperty(value = " 数据类别")
    @TableField("DIC_DATA_TYPE")
    private String dataType;

    @ApiModelProperty(value = " 数据编码 ")
    @TableField("DIC_DATA_CODE")
    private String dataCode;

    @ApiModelProperty(value = " 数据名称/值 ")
    @TableField("DIC_DATA_VALUE")
    private String dataValue;

    @ApiModelProperty(value = " 顺序 ")
    @TableField("DIC_SORT_NO")
    private Integer sortNo;

    @ApiModelProperty(value = "0正常,1删除")
    @TableField("DIC_STATUS")
    private Integer status;

    @ApiModelProperty(value = "数据描述")
    @TableField("DIC_DATA_DESC")
    private String dataDesc;

    @TableField("DIC_UPDATE_TIME")
    private LocalDateTime updateTime;


    public static final String DIC_ID = "DIC_ID";
    public static final String DIC_VALUE_ID = "DIC_VALUE_ID";
    public static final String DIC_PARENT_ID = "DIC_PARENT_ID";
    public static final String DIC_DATA_TYPE = "DIC_DATA_TYPE";
    public static final String DIC_DATA_CODE = "DIC_DATA_CODE";
    public static final String DIC_DATA_VALUE = "DIC_DATA_VALUE";
    public static final String DIC_SORT_NO = "DIC_SORT_NO";
    public static final String DIC_STATUS = "DIC_STATUS";
    public static final String DIC_DATA_DESC = "DIC_DATA_DESC";
    public static final String DIC_UPDATE_TIME = "DIC_UPDATE_TIME";
}
